import request from '@/utils/request'

export const eventsCreateMysqlService = (data) => {
  return request.post('/op/events/mysql', data)
}

export const eventsCreateRedisService = (data) => {
  return request.post('/op/events/redis', data)
}

export const eventsDeleteService = (type, name) => {
  return request.delete(`/op/events/${type}/${name}`, { type, name })
}

export const eventsGetListService = () => {
  return request.get('/op/events')
}